package com.tandashi.springbootstudy01.dao.user;

import com.tandashi.springbootstudy01.entity.user.WechatUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WechatUserMapper {

    WechatUser getWechatUserByUnionid(@Param("unionid") String unionid);

    WechatUser getWechatUserByUserId(@Param("userId") Long userId);

    void insertWeChatUser(WechatUser wechatUser);
}
